package Interfaces_EquipAB_Factory_pro;

public class Factory_pro {

//    1.声明
//    2.生产getter、setter方法
//    3.调用方法

    private Equipment equipment;

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }

    public void work(){
        System.out.println("工厂开始调用生产方法...");
        this.equipment.work();
    }
}
